package com.penghaisoft.microwms.material.web.outwarehouse.service;

import com.penghaisoft.microwms.common.data.model.RawRequisition;
import com.penghaisoft.microwms.common.data.model.RawRequisitionSn;
import com.penghaisoft.microwms.common.dto.TransResult;
import com.penghaisoft.microwms.common.page.Pager;

import java.util.List;

/**
 * Created by 王治国 on 2018/5/18.
 */
public interface OutWhRawService {

    /**
     * 页面展示--分页查询
     * @param page
     * @param rows
     * @param rawRequisition
     * @return
     */
    public Pager<RawRequisition> findAll(int page, int rows, RawRequisition rawRequisition);
    
    public List<RawRequisition> findList(RawRequisition rawRequisition);
    
    public List<RawRequisitionSn> queryScanInfo(RawRequisitionSn t);

    /**
     * 导出
     * @param rawRequisition
     * @return
     */
    public List<RawRequisition> findAllExcel(RawRequisition rawRequisition);
    
    public Pager<RawRequisitionSn> findListByRequestionNo(int page, int rows, RawRequisitionSn rawRequisitionSn);
    
    public TransResult confirmRequisitionNo(RawRequisition rawRequisition);
    
    public TransResult confirmRequisitionNoUpdate(RawRequisition rawRequisition, String loginName);
    
    public RawRequisition queryByRequestionId (RawRequisition rawRequisition);
    
    public TransResult closeRequestionNo (RawRequisition rawRequisition,String loginName);
    
    public List<RawRequisitionSn> queryRequisitionById(RawRequisitionSn rawRequisitionSn);
}
